package com.h820.Zifuchuan;

/**
 * 7．有一个字符串，其中包含中文字符、英文字符和数字字符，请统计和打印出各个字符的个数。
 */
public class zifu {
    public static void main(String[] args) {
        String s = "3242werfsdf23424sd东方是森达";
        StringBuilder zhong = new StringBuilder();
        StringBuilder ying = new StringBuilder();
        StringBuilder shu = new StringBuilder();
        String a = s.replaceAll("[0-9]","");
        String b = s.replaceAll("[a-zA-Z]","");
        String c = s.replaceAll("[\u4e00-\u9fa5]","");
        System.out.println(s.length()-a.length());
        System.out.println(s.length()-b.length());
    }
}
